package com.rising.face.lock.gc.demo1;

/**
 * @Author: rising
 * @Description:
 * @Date: create in 2021/1/16 20:24
 */
public class Test1 {

    private byte[] byteArray = new byte[100 * 1024 * 1024];
    private byte[] byteArray1 = new byte[100 * 1024 * 1024];
    private byte[] byteArray2 = new byte[100 * 1024 * 1024];
    private byte[] byteArray3 = new byte[100 * 1024 * 1024];
    private byte[] byteArray4 = new byte[100 * 1024 * 1024];

    public static void m1() {
        Test1 test1 = new Test1();
        //System.gc();
        System.out.println("第一次GC完成");
    }
    public static void main(String[] args) throws InterruptedException {
        m1();
        Thread.sleep(200 * 1000);
    }

}
